package other;

/**
 * MyMath my math class
 * @version 1.0
 * @author wangli
 * @since 1.0 
 */
public class MyMath {
	/**
	 * add 
	 * @param a first number
	 * @param b second number
	 * @return a and b add
	 */
	public int add(int a ,int b) {
		return a + b;
	}
	/**
	 * sub 
	 * @param a first number
	 * @param b second number
	 * @return a and b minus
	 */
	public int sub(int a ,int b) {
		return a - b;
	}
	/**
	 * mul 
	 * @param a first number
	 * @param b second number
	 * @return a and b multi
	 */
	public int mul(int a ,int b) {
		return a * b;
	}
	/**
	 * divide 
	 * @param a first number
	 * @param b second number
	 * @return a and b divide
	 * @exception ArithmeticException when b is 0, throw ArithmeticException
	 */
	public int divide(int a ,int b) {
		return a / b;
	}
}
